import request from '@/utils/request'

// 获取客户投诉主表列表
export function qmsbusicustomercomplaint(query)
{
    return request({
        url: `/api/Business/qmsbusicustomercomplaint`,
        method: 'GET',
        data: query,
		options: {
			load: false
		}
    });
}

//获取现场调查表
export function getqmsbusicustomersurvey(id)
{
    return request({
        url: `/api/Business/qmsbusicustomersurvey/${id}`,
        method: 'GET',
		options: {
			load: false
		}
    });
}

//修改现场调查
export function updateqmsbusicustomersurvey(query)
{
    return request({
        url: `/api/Business/qmsbusicustomersurvey/${query.id}`,
        method: 'PUT',
        data:query,
		options: {
			load: false
		}
    });
}


//新建现场调查表
export function qmsbusicustomersurvey(data)
{
    return request({
        url: `/api/Business/qmsbusicustomersurvey`,
        method: 'POST',
        data
    });
}